package com.blueocean_health.care.management.domain.vo;

import java.util.List;

import com.blueocean_health.care.management.domain.base.Power;
import com.blueocean_health.care.management.domain.base.Team;
import com.blueocean_health.care.management.domain.dto.RoleDto;

/**
 * 登陆返回数据，包括用户信息，当前所属组织，所有拥有的角色，并集、交集之后的所有权限
 *
 *
 * @Title: LoginDataVo.java
 * @Package com.blueocean_health.care.management.domain.vo
 * @author luxue
 * @date 2018年7月12日
 * @version V1.0
 */
public class LoginDataVo {
	// 用户信息
	private UserVo user;
	// 当前组织信息
	@Deprecated
	private TeamVo currentOrg;
	private Team currentTeam;
	// 拥有的角色列表
	private List<RoleDto> roles;
	// 并集、交集之后的权限列表
	private List<Power> powers;
	// 组织/项目的所有权限列表
	private List<Power> allPower;

	
	
	public List<Power> getAllPower() {
		return allPower;
	}

	public void setAllPower(List<Power> allPower) {
		this.allPower = allPower;
	}

	public Team getCurrentTeam() {
		return currentTeam;
	}

	public void setCurrentTeam(Team currentTeam) {
		this.currentTeam = currentTeam;
	}

	public UserVo getUser() {
		return user;
	}

	public void setUser(UserVo user) {
		this.user = user;
	}
	
	@Deprecated
	public TeamVo getCurrentOrg() {
		return currentOrg;
	}
	
	@Deprecated
	public void setCurrentOrg(TeamVo currentOrg) {
		this.currentOrg = currentOrg;
	}

	public List<RoleDto> getRoles() {
		return roles;
	}

	public void setRoles(List<RoleDto> roles) {
		this.roles = roles;
	}

	public List<Power> getPowers() {
		return powers;
	}

	public void setPowers(List<Power> powers) {
		this.powers = powers;
	}

}
